<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03JS数据类型</title>
</head>
<body>
<script>
  var a=1;
  var b=6.6;
  console.log(a,typeof a);
  console.log(b,typeof b);
  var c='你好';
  var d='你们好';
  console.log(c,typeof c);
  console.log(d,typeof d);
  var e=true;
  var f=false;
  console.log(e,typeof e);
  console.log(f,typeof f);
  var g;
  console.log(g,typeof g);
  //自定义对象
  let obj={
    name:'张三',
    age:18,
    sex:'男'
  };
  console.log(obj.name,obj.age,obj.sex);
  obj.like='吃火锅';
  console.log(obj.like);
  //JS数组
  let arr=['鲁班','张飞','后裔',1,3.3,true];
  console.log(arr,typeof arr);
  console.log(arr[0]);
  console.log(arr[5]);
  console.log(arr[99]);
</script>
</body>
</html>